package neu.soft.service;

import neu.soft.entity.Invoice;
import neu.soft.entity.InvoiceGoodInfo;
import neu.soft.query.BasePageQuery;
import neu.soft.vo.PageBean;

import java.util.List;
import java.util.Map;

public interface InvoiceService {

    Long addInvoice(Invoice invoice);

    PageBean<Invoice> findByPage(BasePageQuery basePageQuery);

    Invoice findById(Long invoiceId);

    void batchInsertGoodInfo(List<InvoiceGoodInfo> invoiceGoodInfoList);

    Invoice buildInvoice(Map<String, Object> map);

    Long findInvoiceByOrderId(String orderId);

    void insertInfoOrder(Long invoiceId, String orderId);

    boolean findInvoiceOrderId(String orderId);

    void updateInvoiceType(Long invoiceId,String type);


}
